import Vue from 'vue';
import Router from 'vue-router';
const register = resolve => require(['@/page/common/register'], resolve) 
const loginPage = resolve => require(['@/page/common/login-page'], resolve) 
const rechargePassword = resolve => require(['@/page/common/recharge-password'], resolve) 
const userList = resolve => require(['@/page/userManager/userList'], resolve)
const userEdit = resolve => require(['@/page/userManager/userEdit'], resolve)
const recharge = resolve => require(['@/page/recharge'], resolve)
const withdraw = resolve => require(['@/page/withdraw'], resolve)
const transfer = resolve => require(['@/page/transfer'], resolve)
const order = resolve => require(['@/page/order'], resolve)
const productList = resolve => require(['@/page/productList'], resolve)
const productClass = resolve => require(['@/page/productClass'], resolve)
const productClassEdit = resolve => require(['@/page/productClassEdit'], resolve)
const productEdit = resolve => require(['@/page/productEdit'], resolve)
const statistics = resolve => require(['@/page/statistics'], resolve)
const system = resolve => require(['@/page/system'], resolve)
const rechargeDetail = resolve => require(['@/page/rechargeDetail'], resolve)
const userDetail = resolve => require(['@/page/userDetail'], resolve)
const userCreate = resolve => require(['@/page/userCreate'], resolve)

Vue.use(Router)

export default new Router({
  mode: 'history',
  base:'/sys/', 
  routes: [
      {
          path: '/loginPage',
          name: 'loginPage',
          component: loginPage
      },
      {
        path: '/register',
        name: 'register',
        component: register
      },
      {
        path: '/rechargePassword',
        name: 'rechargePassword',
        component: rechargePassword
      },
      {
        path: '/',
        name: 'userList',
        component: userList
      },
	  {
		  path: '/userCreate',
		  name: 'userCreate',
		  component: userCreate
	  },
	  {
		  path: '/recharge',
		  name: 'recharge',
		  component: recharge
	  },
	  {
		  path: '/withdraw',
		  name: 'withdraw',
		  component: withdraw
	  },
	  {
		  path: '/transfer',
		  name: 'transfer',
		  component: transfer
	  },
	  {
		  path: '/order',
		  name: 'order',
		  component: order
	  },
	  {
		  path: '/productList',
		  name: 'productList',
		  component: productList
	  },
	  {
		  path: '/productClass',
		  name: 'productClass',
		  component: productClass
	  },
	  {
		  path: '/productClassEdit',
		  name: 'productClassEdit',
		  component: productClassEdit
	  },
	  {
		  path: '/productEdit',
		  name: 'productEdit',
		  component: productEdit
	  },
	  {
		  path: '/statistics',
		  name: 'statistics',
		  component: statistics
	  },
	  {
		  path: '/system',
		  name: 'system',
		  component: system
	  },
	  {
		  path: '/rechargeDetail',
		  name: 'rechargeDetail',
		  component: rechargeDetail
	  },
	  {
		  path: '/userDetail',
		  name: 'userDetail',
		  component: userDetail
	  },
      // {
      //   path: '/userEdit',
      //   name: 'userEdit',
      //   component: userEdit
      // },
      // {
      //     path: '/msgList',
      //     name: 'msgList',
      //     component: msgList
      // },
      // {
      //     path: '/msgEdit',
      //     name: 'msgEdit',
      //     component: msgEdit
      // },
      // {
      //     path: '/msgDetail',
      //     name: 'msgDetail',
      //     component: msgDetail
      // },
      // {
      //     path: '/feedList',
      //     name: 'feedList',
      //     component: feedList
      // },
      // {
      //     path: '/feedDetail',
      //     name: 'feedDetail',
      //     component: feedDetail
      // },
      // {
      //     path: '/talentInList',
      //     name: 'talentInList',
      //     component: talentInList
      // },
      // {
      //     path: '/talentInEdit',
      //     name: 'talentInEdit',
      //     component: talentInEdit
      // },
      // {
      //     path: '/talentInDetail',
      //     name: 'talentInDetail',
      //     component: talentInDetail
      // },
      // {
      //     path: '/talentOutList',
      //     name: 'talentOutList',
      //     component: talentOutList
      // },
      // {
      //     path: '/talentOutEdit',
      //     name: 'talentOutEdit',
      //     component: talentOutEdit
      // },
      // {
      //     path: '/talentOutDetail',
      //     name: 'talentOutDetail',
      //     component: talentOutDetail
      // },
      // {
      //     path: '/sinceMoneyList',
      //     name: 'sinceMoneyList',
      //     component: sinceMoneyList
      // },
      // {
      //     path: '/recommandMoneyList',
      //     name: 'recommandMoneyList',
      //     component: recommandMoneyList
      // },
      // {
      //     path: '/signingList',
      //     name: 'signingList',
      //     component: signingList
      // },
      // {
      //     path: '/signedList',
      //     name: 'signedList',
      //     component: signedList
      // },
      // {
      //     path: '/refundList',
      //     name: 'refundList',
      //     component: refundList
      // },
      // {
      //     path: '/orderDetail',
      //     name: 'orderDetail',
      //     component: orderDetail
      // },
      // {
      //     path: '/historyList',
      //     name: 'historyList',
      //     component: historyList
      // },
      // {
      //     path: '/ruleEdit',
      //     name: 'ruleEdit',
      //     component: ruleEdit
      // },
      // {
      //     path: '/ruleList',
      //     name: 'ruleList',
      //     component: ruleList
      // },
      // {
      //       path: '/bannerList',
      //       name: 'bannerList',
      //       component: bannerList
      // },
      // {
      //     path: '/system/roleList',
      //     name: 'roleList',
      //     component: roleList,
      // },
      // {
      //     path: '/system/userSet',
      //     name: 'accountList',
      //     component: accountList,
      // },
      // {
      //     path: '/system/roleEdit',
      //     name: 'roleEdit',
      //     component: roleEdit,
      // },
      // {
      //     path: '/system/accountEdit',
      //     name: 'accountEdit',
      //     component: accountEdit,
      // },
  ]
})
